#ifndef __EHOME_H
#define __EHOME_H

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#include <errno.h>

#define SERVERIP "192.168.1.6"
#define PORT_VIDEO    8080
#define PORT_LEDS    8081

#define LED_BEDROOM_ON  10
#define LED_BEDROOM_OFF 11
#define LED_SALOON_ON   12
#define LED_SALOON_OFF  13
#define LED_KITCHEN_ON  14
#define LED_KITCHEN_OFF  15
#define LED_RESTROOM_ON 16
#define LED_RESTROOM_OFF 17

#define BEEP_ON         20
#define BEEP_OFF        21

#define MUSIC_PLAY      40
#define MUSIC_PAUSE     41
#define MUSIC_NEXT      42
#define MUSIC_PREV      43

#define IF_MONITOR      50
#define STEP_SCOPE      0X100

#define UPDATE_KERNEL   60
#define UPDATE_SERVER   61
#define UPDATE_CLIENT   62


#define DEBUG
#ifdef DEBUG
    #define pr_debug(fmt,...) printf(fmt,##__VA_ARGS__)
#else
    #define pr_debug(fmt,...)
#endif

#endif //__EOME_H
